package org.jeecg.modules.demo.weixin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: smt_stored_value_users
 * @Author: jeecg-boot
 * @Date:   2023-10-30
 * @Version: V1.0
 */
@Data
@TableName("smt_stored_value_users")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="smt_stored_value_users对象", description="smt_stored_value_users")
public class SmtStoredValueUsers implements Serializable {
    private static final long serialVersionUID = 1L;

	/**储值卡id*/
	@Excel(name = "储值卡id", width = 15)
    @ApiModelProperty(value = "储值卡id")
    @TableId(type = IdType.AUTO)
    private Integer valueId;
	/**用户id*/
	@Excel(name = "用户id", width = 15)
    @ApiModelProperty(value = "用户id")
    private Integer userId;
	/**用户昵称*/
	@Excel(name = "用户昵称", width = 15)
    @ApiModelProperty(value = "用户昵称")
    private String userNickname;
	/**设备号*/
	@Excel(name = "设备号", width = 15)
    @ApiModelProperty(value = "设备号")
    private String devCode;
	/**设备名称*/
	@Excel(name = "设备名称", width = 15)
    @ApiModelProperty(value = "设备名称")
    private String devName;
	/**储值卡卡号*/
	@Excel(name = "储值卡卡号", width = 15)
    @ApiModelProperty(value = "储值卡卡号")
    private String valueNumber;
	/**储值卡剩余金额*/
	@Excel(name = "储值卡剩余金额", width = 15)
    @ApiModelProperty(value = "储值卡剩余金额")
    private BigDecimal valueRest;
	/**储值卡优惠折扣*/
	@Excel(name = "储值卡优惠折扣", width = 15)
    @ApiModelProperty(value = "储值卡优惠折扣")
    private BigDecimal valueDiscount;
	/**储值卡折后金额*/
	@Excel(name = "储值卡折后金额", width = 15)
    @ApiModelProperty(value = "储值卡折后金额")
    private BigDecimal valueRegular;
	/**储值卡有效期*/
	@Excel(name = "储值卡有效期", width = 15)
    @ApiModelProperty(value = "储值卡有效期")
    private String valueValidDate;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
    /**商家id*/
    @Excel(name = "商家id", width = 15)
    @ApiModelProperty(value = "商家id")
    private Integer merchantId;
    /**赠送金额*/
    @Excel(name = "赠送金额", width = 15)
    @ApiModelProperty(value = "赠送金额")
    private BigDecimal giftAmount;
    /**积分*/
    @Excel(name = "积分", width = 15)
    @ApiModelProperty(value = "积分")
    private Integer points;
    /**手机号*/
    @Excel(name = "手机号", width = 15)
    @ApiModelProperty(value = "手机号")
    private String phone;
    /**是否过期（0 未过期 1 过期）*/
    @Excel(name = "是否过期（0 未过期 1 过期）", width = 15)
    @ApiModelProperty(value = "是否过期（0 未过期 1 过期）")
    private Integer status;

    /**
     * 商家id
     */
    @TableField(exist = false)
    private Integer merId;
}
